//
//  TLST_jokeFrameModel.m
//  Travel_World
//
//  Created by lanou on 15/10/15.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "TLST_jokeFrameModel.h"
#import "TLST_jokeModel.h"

@implementation TLST_jokeFrameModel
- (void)setJokeModel:(TLST_jokeModel *)jokeModel{
    if (_jokeModel != jokeModel) {
        _jokeModel = jokeModel;
    }
    self.profile_imageViewF = CGRectMake(10, 10, 50*WID, 50*WID);
    self.nameLabelF = CGRectMake(50*WID+20, 10, WIDTH-50*WID-30, 25);
    self.createdLabelF = CGRectMake(50*WID+20, 35, WIDTH-50*WID-30, 25);
    
    CGRect rect = [TLST_jokeModel rectWithStr:jokeModel.text fontOfSize:16 rectWithSize:CGSizeMake(WIDTH-20, 0)];
    self.textLabellF = CGRectMake(10, 70, WIDTH-20, rect.size.height);
    
    self.loveButtonF = CGRectMake(0, CGRectGetMaxY(self.textLabellF)+10, WIDTH/4, 30);
    self.hateButtonF = CGRectMake(WIDTH/4, CGRectGetMaxY(self.textLabellF)+10, WIDTH/4, 30);
    self.shareButtonF = CGRectMake(WIDTH/2, CGRectGetMaxY(self.textLabellF)+10, WIDTH/4, 30);
    self.commentButtonF = CGRectMake(3*WIDTH/4, CGRectGetMaxY(self.textLabellF)+10, WIDTH/4, 30);
    
    self.cellHeight = CGRectGetMidY(self.commentButtonF)+20;
}
@end
